/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frstat_conn.c                                      */
/*  NOTE      =                                                    */
/*  DATE      = 2015/05/14 by yaohl                                */
/*******************************************************************/
#ifndef __FRSTAT_CONN_H_
#define __FRSTAT_CONN_H_

int frstat_conns_init(unsigned long ul_hash_size);
void frstat_conns_destroy(void);


int frstat_conns_add_conn_ct(Conntrack *p_st_ct, int flg_report_conn_info
                           , u_int ui_src_ip, u_int ui_dst_ip, u_short us_dst_port
                           , int i_conns, unsigned int ui_tx_bytes, unsigned int ui_rx_bytes);
int frstat_conns_del_conn_ct(Conntrack *p_st_ct, int flg_report_conn_info);
int frstat_conns_add_traffic(Conntrack *p_st_ct, unsigned int ui_tx_bytes, unsigned int ui_rx_bytes);

int frstat_conns_add_refused(u_int ui_src_ip, u_int ui_dst_ip, u_short us_dst_port, unsigned int ui_refuses);
int frstat_conns_add_reset(u_int ui_src_ip, u_int ui_dst_ip, u_short us_dst_port, unsigned int ui_reset);
//int frstat_conns_add_tx_bytes(u_int ui_src_ip, u_int ui_dst_ip, u_short us_dst_port, unsigned int ui_tx_bytes);
//int frstat_conns_add_rx_bytes(u_int ui_src_ip, u_int ui_dst_ip, u_short us_dst_port, unsigned int ui_rx_bytes);

void frstat_conns_report(void);


#endif
